<?php
  session_start();							// 启用Session
  if ($_SESSION["username"]) {				// 判断是否处于成功登录状态
    $role = $_COOKIE["role"];				// 从Cookie中获得role
    echo "你好，".$role."：".$_SESSION["username"]."<br/>";
    echo "<a href='changeMail.php'>修改邮箱</a> <br/>";
	echo "<a href='logout.php'>退出</a>";
  } else echo "无权访问！";					// 错误提示
?>